package com.yuelife.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author by Rxzeg
 * @date 2020-07-01 22:12
 * @describe
 */
@Data
public class SendOrderDTO implements Serializable {
    private BigDecimal serviceprice;

    /**
     * 预估送达时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date estimatetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    private Date pickuptime;//用户设置的取件时间

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户id
     */
    private String customerid;
    private Integer relatedadressId;
    private Integer getadressId;
    private String sendGoodType;
    private String sendGoodValue;
    private String sendGoodWeight;
    /**
     * 基础配送费
     */
    private BigDecimal basicPrice;

    /**
     * 距离附加费
     */
    private BigDecimal distancePrice;

    /**
     * 重量附加费
     */
    private BigDecimal weightPrice;

    /**
     * 特殊时段费用
     */
    private BigDecimal specialTimePrice;

    /**
     * 配送难度费用(包括恶劣天气，路径难度等)
     */
    private BigDecimal difficultPrice;
    private BigDecimal totalPrice;
}
